var vm = new Vue({
    el:'#app',
    data:{ 
        searchText:'',
        searchArr:[
            '麻辣烫','米线','披萨'
        ]
    },
    methods:{
        search(){
            
            if( this.searchText ){
                this.searchArr.push( this.searchText );
    
                this.searchText = '';
            }
        }
    }
})